<template>
  <span>工作地点:{{ place }}</span>
  <span>工作单位:{{ company }}</span>
  <el-button @click="changeStore">改变store</el-button>
</template>
<script setup lang="ts">
import { useWorkStore } from '@/stores/work'
import { storeToRefs } from 'pinia'
const store = useWorkStore()
const { place, company } = storeToRefs(store)
const changeStore = () => {
  store.place = `成都${Math.random()}`
}
</script>
